<?php
/**
 * 后台权限管理
 * @author Ice <iceinto@mallog.com.cn>
 *
 */
class PermissionsAction extends LoginAction
{
    public function _initialize ()
    {
        parent::_initialize();
        $user = $this->get('userInfo');
        if (intval($user['id']) !== 1) {
            redirect(__APP__ . '/Index/index');
        }
    }
    public function index ()
    {
        $this->display();
    }
}
?>